package com.myexam.dao;

import java.util.List;

import com.myexam.model.Subject;
import com.myexam.util.Page;

public interface SubjectDao {

	public void addSubject(Subject subject);
	
	public List<Subject> findSubjectByTitle(String subjectTitle);
	
	public List<Subject> findSubjectByPage(Page page);
	
	
	public int findSubjectCount();
	
	
	public Subject findSubjectByID(int subjectID);
	
	public void updateSubject(Subject subject);
	
	public void deleteSubject(int subjectID);
	
	//public List<Subject> likeQueryByTitle(Page page);
	
	//public int findLikeQueryCount(String subjectTitle);
	
	public List<Subject> randomFindSubject(int number);
	
}
